package com.audio;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;

public class AudioFileManager {
    public static String moveFile(String source, String target) throws IOException {
        Path sourcePath = Path.of(source);
        Path targetPath = Path.of(target);
        Files.createDirectories(targetPath.getParent());
        Files.move(sourcePath, targetPath, StandardCopyOption.REPLACE_EXISTING);
        return targetPath.toString();
    }
}